﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace ifunction.BaiduBCS.SDK
{
    /// <summary>
    /// Enum StorageObjectPermission
    /// </summary>
    [DataContract]
    public enum StorageObjectPermission
    {
        /// <summary>
        /// Value indicating it is private
        /// </summary>
        [EnumMember(Value = "private")]
        Private = 0,
        /// <summary>
        /// Value indicating it is public read
        /// </summary>
        [EnumMember(Value = "public-read")]
        PublicRead = 1,
        /// <summary>
        /// Value indicating it is public write
        /// </summary>
        [EnumMember(Value = "public-write")]
        PublicWrite = 2,
        /// <summary>
        /// Value indicating it is public read and write
        /// </summary>
        [EnumMember(Value = "public-read-write")]
        PublicReadAndWrite = 3,
        /// <summary>
        /// Value indicating it is public control
        /// </summary>
        [EnumMember(Value = "public-control")]
        PublicControl = 4
    }
}
